package com.examples.string;
public class StringExpamples {
	
	public String reverseString(String str) {
		
		char[] charString = new char[10];
		
		for (int j = 0; j < str.length(); j++) {
			charString[j] = str.charAt(j);
		}		
		System.out.println(str.charAt(0));
		String rev = "";
		for (int j = str.length()-1; j >=0 ;j--) {
			rev = rev + charString[j];
		}
	
		return rev;
		
	}
}
